package com.gongj.populateBean.resource;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;

import javax.annotation.Resource;
public class A {

	//@Resource()
	//@Autowired
	//@Qualifier("scienceService")
	@Resource(type = OrderService.class)
	IPro pro;

	//@Resource
	private OrderService order;

	//@Resource
	private void setOrder1(OrderService order123){
		this.order = order123;
	}

	//@Resource
	private void setpro1(IPro pro122){
		this.pro = pro122;
	}

	@Override
	public String toString() {
		return "A{" +
				"pro=" + pro +
				", order=" + order +
				'}';
	}
}
